package com.zjm.structural.bridge.jdbc;

/**
 * 具体实现1：MySQL驱动
 */
public class MySQLDriver implements DatabaseDriver{
    @Override
    public void connect(String url, String username, String password) {
        System.out.println("MySQL驱动连接到: " + url + " 用户: " + username);
    }

    @Override
    public void executeQuery(String sql) {
        System.out.println("MySQL执行查询: " + sql);
    }

    @Override
    public void close() {
        System.out.println("关闭MySQL连接");
    }
}
